// 安装npm i gulp sonarqube-scanner -D


var gulp = require('gulp');
var sonarqubeScanner = require('sonarqube-scanner');
 
gulp.task('default', function(callback) {
  sonarqubeScanner({
    serverUrl : "http://192.168.32.131:9000",
    token : "90a0d31d48bc106a57514d3cc9e7963a3cf05821",
    options : {
      //"sonar.organization": "my-org",
      "sonar.projectKey": "my:npm-init-project",
      "sonar.projectName": "npm-init-project",
      "sonar.projectVersion": "1.0",
      "sonar.sources": "src",
      "sonar.exclusions": "package.json",
      "sonar.login":"1.0",
    }
  }, callback);
});